Packetery\Module\Checkout D

Total Complexity 147
Dependencies 20
Dependents 8
Total lines 1,007
Lines of code 552
Logical lines of code 307
Comment lines 189
Methods 32
Properties 9

Methods 32

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
B
39 19 63
updateOrderMeta()
B
40 17 59
calculateFees()
A
43 11 48
updateOrderEntityFromPropsToSave()
A
49 10 32
getTaxClassWithMaxRate()
A
48 9 33
getShippingRates()
A
48 9 31
createSettings()
S
45 5 43
renderWidgetButtonAfterShippingRate()
S
52 6 25
getRateCost()
S
56 6 19
getCODSurcharge()
S
60 6 13
updateShippingAddressProperty()
S
60 5 15
getAllShippingRates()
S
61 4 12
register_hooks()
S
54 3 21
renderWidgetButtonTableRow()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
getWidgetCarriersParam()
S
70 3 6
getCarrierId()
S
64 3 10
getExtendedBranchServiceId()
S
70 2 6
getChosenMethod()
S
67 2 8
getCustomerCountry()
S
69 2 7
isPickupPointOrder()
S
72 2 5
getCartWeightKg()
S
67 2 8
updateShippingRates()
S
69 2 6
isHomeDeliveryOrder()
S
72 2 5
__construct()
S
67 1 8
getCartPrice()
S
80 1 3
createShippingRate()
S
66 1 9
getShortenedRateId()
S
78 1 3
isPacketeryOrder()
S
74 1 4
renderHiddenInputFields()
S
68 1 7
getCartContentsTotalIncludingTax()
S
79 1 3